function update(id,name) {
	document.getElementById("addtype_btn").value = "修改";
	document.getElementById("modify_id").value =id;
	document.getElementById("modify_name").value =name;
}
function check_() {
	var id =document.getElementById("modify_id").value;
	var name=document.getElementById("modify_name").value;
	name=name.replace(/(^\s*)|(\s*$)/g, "");
	if (name=='') {
		alert("请输入分类名称");
	}else {		
		document.type_form.submit();
	}
}